import request from '@/utils/request'
export function getlist(listquery) {
    return request({
        url: '/api/notice/getlist',
        method: 'post',
        headers: {
            "Content-Type": "application/json"
        },
        data: listquery
    })
}
export function add(data) {
    return request({
        url: '/api/notice/add',
        method: 'post',
        headers: {
            "Content-Type": "multipart/form-data"
        },
        data:data,
        transformRequest: [function (formDatas) {
            return formDatas;
        }],
    })
}
export function edit(data) {
    return request({
        url: '/api/notice/edit',
        method: 'post',
        headers: {
            "Content-Type": "application/json"
        },
        data:data,
    })
}
export function del(id){
    return request({
        url: '/api/notice/del',
        method: 'post',
        headers: {
            "Content-Type": "application/json"
        },
        data:id,
    })
}
//下载统计信息
export function getoperationcondition() {
    return request({
        url: '/api/statistical/getoperationcondition',
        method: 'get',
        responseType: 'blob',

    })
}
//下载统计信息
export function getoperationconditionvillageexcel(data) {
    return request({
        url: '/api/statistical/getoperationconditionvillageexcel',
        method: 'get',
        responseType: 'blob',
        params:{
            CYear:data
        }
    })
}
//下载镇村一体统计信息
export function getzcytinfoexcel() {
    return request({
        url: '/api/statistical/getzcytinfoexcel',
        method: 'get',
        responseType: 'blob',
    })
}
//村镇一体质量提升统计导出
export function getzcytinfoexcelledger(data) {
    return request({
        url: '/api/statistical/getzcytinfoexceltz',
        method: 'get',
        responseType: 'blob',
        params:{
          CYear:data
      }
    })
}
//村镇一体质量提升详情导出
export function geteveryzcytinfoexceltz(data) {
  return request({
      url: '/api/statistical/geteveryzcytinfoexceltz',
      method: 'get',
      responseType: 'blob',
      params:{
        CYear:data
    }
  })
}
//普通村统计导出
export function getoperationconditionvillageexcel2(data) {
    return request({
        url: '/api/statistical/getoperationconditionvillagecountryexcel',
        method: 'get',
        responseType: 'blob',
        params:{
          CYear:data
      }
    })
}
//普通村质量提升统计导出
export function getoperationconditionvillageexcelledger(data) {
    return request({
        url: '/api/statistical/getoperationconditionvillagecountryexceltz',
        method: 'get',
        responseType: 'blob',
        params:{
          CYear:data
      }
    })
}
//普通村质量提升详情导出
export function getoperationconditioneveryvillagetz(data) {
  return request({
      url: '/api/statistical/getoperationconditioneveryvillagetz',
      method: 'get',
      responseType: 'blob',
      params:{
        CYear:data
    }
  })
}
//下载进度统计信息
export function getoperationconditionvillage(year) {
    return request({
        url: '/api/statistical/getoperationconditionvillage',
        method: 'get',
        responseType: 'blob',
        params:{
          CYear:year
      }
    })
}
export function villagewarning(data){
    return request({
        url: '/api/village/villagewarning',
        method: 'post',
        headers: {
            "Content-Type": "application/json"
        },
        data:data,
    })
}

export function getnowwarning() {
    return request({
        url: '/api/warning/getnowwarning',
        method: 'post',
        headers: {
            "Content-Type": "application/json"
        },

    })
}
// 区县用户统一上传准备工作进度包
export function uploadfirstzip(data) {
    return request({
        url: '/api/villageprogress/uploadfirstzip',
        method: 'post',
        headers: {
            "Content-Type": "multipart/form-data"
        },
        data: data,
        transformRequest: [function (formDatas) {
            return formDatas;
        }],
    })
  }
  //批量入库
  export function setinputstates(data) {
    return request({
        url: '/api/inputstate/setinputstates',
        method: 'post',
        headers: {
            "Content-Type": "application/json"
        },
        data:data,

    })
}
